% For the number of images to learn, get the
% pixel where the feature has been found, using 
% the makeVector function.
% Returns the data structure d containing the
% grey level value of the pixels.

function d = learn(nims)

    d = {};
    
    % for each type (cat and car)
    for type = 0:1
        % for each image
        for i = 1:nims
            im = cv2007image(type,i);
            d{type+1, i} = makeVector(im);
        end
    end
            
        